home *** CD-ROM | disk | FTP | other *** search
- This executable SEESAT, version dated November 12,
- 1990, was compiled for DOS using Borland's Turbo-C version
- 2.01. The original source code, written by Paul Hirose, is
- included and the necessary changes for compiling with Turbo-C
- are listed below.
-
- Any changes you wish to make to SEESAT should be
- done with the original code. I have listed the changes
- that I have made as a helpful guide to anyone wishing to
- experiment with the code, but I will not distribute the
- code with the changes that I have made. Other than the
- following changes for DOS/Turbo-C compatibility, the
- program functions as originally written.
-
- Please note that all times entered and listed are
- in local time, not UTC. Therefore it is important that the
- correct time zone difference is entered at program start-
- up, if different from the default. I have made the default
- equal to six hours which is correct for Houston CST. For
- daylight savings time, Houston, this should be changed to 5.
-
- The following changes to the original code were made:
-
- 1) #include "B:SEESAT.H" was changed to #include "SEESAT.H"
- in all .C files, to reflect the fact that I placed all
- of the SEESAT3.ARC files in the same directory for
- compilation .
-
- 2) SEESAT.H, The redefinition of ITOA,
- #define ITOA(s, i) sprintf(s, "%d", i) was made
- because of transposition of parameters in Turbo-C itoa()
- function.
-
- 3) SEESAT.H, The ANSI C recommended JMPBUF routine was
- uncommented and used and the other routine was commented
- out.
-
- 4) SEESAT.H, #define MALLOC(n) alloc(n) was changed to
- #define MALLOC(n) malloc(n)
-
- 5) SEESAT.H. #define VOIDP char * was changed to
- #define VOIDP void *
-
- 6) SEESAT.H, #include<ctype.h> and #include<stdlib.h> were
- added and redeclaration of appropriate functions deleted
- from respective .C files.
-
- 7) All printf() declarations were changed to type int.
-
- 8) READEL.C, changed fseek() from type long int to type
- int in the declarations.
-
- 9) ASTRO.C, The default location was changed to southwest
- Houston parameters, and a default time zone difference
- was changed to 6. During program start-up, the time
- zone difference should be changed to 5 for daylight
- savings time in Houston.
-
- 10) ASTRO.C, The floor() and ceil() functions were used in
- place of the dint() function by uncommenting the
- appropriate code.
-
- 11) ASTRO.C, #define GLON 1 was made to provide longitude
- relative to Greenwich meridian.
-
- 12) READEL.C, #define LNAME 22 was changed to
- #define LNAME 16 to keep the size
- estimates following the satellite's name in the CSS
- N2L-xxx.ZIP bulletins from becoming part of the
- satellite's name.
-
- 13) DRIVER.C, delt = 1; was added to function init() to
- initialize the STEP command to 1 at program startup.
-
-